package com.abss.vote.service;

import com.abss.vote.model.*;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface UserReceptionService {

    Activity getActivityId(int ACTIVITY_ID);
    List<DistrictList> getCounty();

    int verification(String TELEPHONE,int ACTIVITY_ID);

    int singUp(UserWorkVo userWorkVo);

    int checkSingUp(int ACTIVITY_ID,String USER_ID);

    UserWorkVo getSingUp(UserWorkVo userWorkVo);

    int updateSingUp(UserWorkVo userWorkVo);

    ActivityPrizeVo getPrize1(int ACTIVITY_ID);
    ActivityPrizeVo getPrize2(int ACTIVITY_ID);
    ActivityPrizeVo getPrize3(int ACTIVITY_ID);





    int setVisist(int ACTIVITY_ID);

    Map<String,Object> setVOTES(int ACTIVITY_ID,String USER_ID,int WORK_ID);

    List<DistrictListUserWorkVo> getWorkByUserName(String NAME, int ACTIVITY_ID);

    List<DistrictListUserWorkVo> getWorkByVotesNumber();

    DistrictListUserWorkVo getWorkDetails(int WORK_ID);

    int addUser(userCallBack userCallBack);

    int checkUser(userCallBack userCallBack);

    int updateUser(userCallBack userCallBack);

    int updaUserVoteInfo(User user);

    User getUser(String USER_ID);

    PageInfo<Activity> getActivityBySth(int start, int end);

    List<DistrictListUserWorkVo> getWorkByActivityId(int ACTIVITY_ID);

    List<Activity> getActivities(int start, int end,String ServerId,String admin);


    List<Work> getWorksWithOrder(int activity_id,int start, int end, int order_type,int currentStage);


    List<Work> getWorksWithOrderAndSearch(String search_user_name,Integer search_work_id,int district_id,String search_content, int activity_id, int start, int i, int order_type,int currentStage);


    Prize getPrize1Info(int activity_id);
    Prize getPrize2Info(int activity_id);
    Prize getPrize3Info(int activity_id);

    Work getWorkInfoById(int work_id);

    int delUser(String user_id, int activity_id);

    int addUserRegInfo(UserRegInfo userRegInfo);

    int updUserRegInfo(UserRegInfo userRegInfo);

    UserRegInfo getUserRegInfo(String user_id, int activity_id);

    int addyinWork(Work work);

    int delWork(int work_id);

    int updSound(Work work);
    int updSounds(Work work);
    Work getWork(int work_id);

    Work getWorks(int work_id);

    PrizeUser getWorksp(int work_id,int ACTIVITY_ID);

    List<Work> getWorksByUserIdAndActivityId(String user_id, int activity_id);

    List<Article> getReadWork();

    Article getActicleById(int ID);

    int addRecorderWork(Work work);

    int getCurrentStage(int activity_id);

    MpInfo getMpInFo(String serverId);


    List<DistrictList> getCountyHaveAdmin();

    List<DistrictList> getCountyNoLook(String serverId,String admin);

    Logo getLogos(String admin);

    List<UserWorkVo> getPrizeOne(Integer prize1_id);


    String getAdmin(String server_id);

    int getProbation(String server_id, String admin);


    String getImageFromWeixin(String mediaId,MpInfo mpInfo);


    int setMpInFo(MpInfo mpInfo);

    int setMpInFoticket(MpInfo mpInfo1);
}
